package com.ty.utils.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 数据管理表
 * </p>
 *
 * @author xinyu
 * @since 2023-02-20
 */
@Data
@ApiModel(value = "Dict对象", description = "数据管理表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("上级id")
    private Long parentId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("值")
    private Long value;

    @ApiModelProperty("编码")
    private String dictCode;


    @ApiModelProperty("创建时间")
    private Date createTime;


    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("删除标记（0:不可用 1:可用）")
    private Integer isDeleted;

    @ApiModelProperty("乐观锁")
    private Integer version;

    @ApiModelProperty("是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;
}
